Skip to content

fix: polish installer window interactions - #97

Merged
cyzus merged 1 commit into
mainfrom
agent/installer-window-polish
Aug 5, 2026
Merged

fix: polish installer window interactions#97
cyzus merged 1 commit into
mainfrom
agent/installer-window-polish

Conversation

@cyzus

@cyzus cyzus commented Aug 5, 2026

Copy link
Copy Markdown
Owner

What changed

  • grant the custom title bar the Tauri permissions required for drag, minimize, and maximize actions
  • use explicit native window dragging and double-click maximize behavior
  • reduce resize-time rendering work by disabling decorative overlays, transitions, and animations while the window is changing size
  • simplify the update-stage disclosure control and neutralize failure styling

Why

The frameless installer window could not reliably be dragged, resizing felt sluggish, and the update-stage/error treatments were visually heavy and inconsistent with the simplified monochrome direction.

Impact

Installer and updater windows are easier to move and resize, while update progress and failure states remain clearer and calmer.

Validation

  • cargo fmt --check
  • cargo check
  • cargo test (7 passed)
  • uv run pre-commit run --all-files
  • local Tauri release GUI and update/error browser previews

@cyzus
cyzus marked this pull request as ready for review August 5, 2026 02:37
Copilot AI lite review requested due to automatic review settings August 5, 2026 02:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@cyzus
cyzus merged commit a635c43 into main Aug 5, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 996b2cbbea

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const titlebar = document.querySelector('.app-titlebar');
titlebar.addEventListener('pointerdown', event => {
if (event.button !== 0 || event.target.closest('.window-actions') || !appWindow) return;
if (event.detail === 2) appWindow.toggleMaximize();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use a click-counted event for title-bar double-click

When the user double-clicks the custom title bar in the Tauri/WebView window, this condition never reliably identifies the second press because pointerdown events do not carry the click count in UIEvent.detail outside click/mousedown/mouseup/dblclick events (MDN). The handler therefore falls through to startDragging() instead of toggleMaximize(), so the new double-click maximize behavior remains broken; handle dblclick separately or switch this drag logic to mousedown where detail is populated.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants